<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>Api接口管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="Access-Control-Allow-Origin" content="*">
  <meta name="viewport"
    content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="./css/font.css">
  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./css/com_table.css">
  <link rel="stylesheet" href="./css/other.css">

  <!--[if lt IE 9]>
      <script src="./lib/ie9/html5.min.js"></script>
      <script src="./lib/ie9/respond.min.js"></script>
    <![endif]-->
</head>

<body>
  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="javascript:;">系统管理</a>
      <a href="javascript:;">Api接口管理</a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="layui-icon" style="line-height:30px">ဂ</i></a>
  </div>
  <div class="x-body">
    <div class="layui-row clearfix">
      <div class="fl listW">
        <ul>
          <li>企业数据api</li>
          <li>政府单位数据API</li>
          <li>维保单位API</li>
          <li>公众平台API</li>
          <li>企业数据API</li>
          <li>政府单位数据API</li>
          <li>维保单位API</li>
          <li>公众平台API</li>
          <li>企业数据API</li>
          <li>政府单位数据API</li>
          <li>政府单位数据API</li>
          <li>政府单位数据API</li>
          <li>公众平台API</li>
          <li>企业数据API</li>
          <li>政府单位数据API</li>
          <li>维保单位API</li>
          <li>公众平台API</li>
        </ul>
      </div>
      <div class="fl canshu">
        <h2>企业数据api</h2>
        <div class="canshuCont">
          <span>公共参数</span>
          <span>请求参数</span>
          <span>公共响应参数</span>
          <span>响应参数</span>
          <span>请求示例</span>
          <span>响应示例</span>
          <span>异常示例</span>
          <span>业务错误码</span>
          <span>触发通知类型</span>
          <span>触发通知示例</span>
        </div>
      </div>
      <div class="paramerWrap">
        <h2>获取企业档案基本数据</h2>
        <div class="paramerCont">
          <ul class="">
            <li>
              <p class="comTitle">数据请求地址</p>
              <table>
                <thead>
                  <th>环境</th>
                  <th>HTTP请求地址</th>
                </thead>
                <tbody>
                  <tr>
                    <td>正式环境</td>
                    <td>https://www.baidu.com/</td>
                  </tr>
                  <tr>
                    <td>测试环境</td>
                    <td>https://www.baidu.com/</td>
                  </tr>
                </tbody>
              </table>
            </li>
            <li>
              <p class="comTitle">公共请求参数</p>
              <table>
                <thead>
                  <th>环境</th>
                  <th>HTTP请求地址</th>
                </thead>
                <tbody>
                  <tr>
                    <td>正式环境</td>
                    <td>https://www.baidu.com/</td>
                  </tr>
                  <tr>
                    <td>测试环境</td>
                    <td>https://www.baidu.com/</td>
                  </tr>
                </tbody>
              </table>
            </li>
            <li>
              <p class="comTitle">请求示例</p>
              <div class="tabBox">
                <div class="tabHead">
                  <span class="active">JSON事例</span>
                  <span>XMl事例</span>
                </div>
                <div class="tabCont">
                  https://openapi.alipay.com/gateway.do?timestamp=2013-01-01
                  08:08:08&method=alipay.trade.create&app_id=15782&sign_type=RSA2&sign=ERITJKEIJKJHKKKKKKKHJEREEEEEEEEEEE&version=1.0&charset=GBK&biz_content=

                  {

                  "out_trade_no":"20150320010101001",

                  "seller_id":"2088102146225135",

                  "total_amount":88.88,

                  "discountable_amount":8.88,

                  "subject":"Iphone6 16G",

                  "body":"Iphone6 16G",

                  "buyer_id":"2088102146225135",

                  "goods_detail":[{

                  "goods_id":"apple-01",

                  "goods_name":"ipad",

                  "quantity":1,

                  "price":2000,

                  "goods_category":"34543238",

                  "categories_tree":"124868003|126232002|126252004",

                  "body":"特价手机",

                  "show_url":"http://www.alipay.com/xxx.jpg"

                  }],

                  "product_code":"FACE_TO_FACE_PAYMENT",

                  "operator_id":"Yx_001",

                  "store_id":"NJ_001",

                  "terminal_id":"NJ_T_001",

                  "extend_params":{

                  "sys_service_provider_id":"2088511833207846",

                  "industry_reflux_info":"{\\\"scene_code\\\":\\\"metro_tradeorder\\\",\\\"channel\\\":\\\"xxxx\\\",\\\"scene_data\\\":{\\\"asset_name\\\":\\\"ALIPAY\\\"}}",

                  "card_type":"S0JP0000"

                  },

                  "timeout_express":"90m",

                  "settle_info":{

                  "settle_detail_infos":[{

                  "trans_in_type":"cardAliasNo",

                  "trans_in":"A0001",

                  "summary_dimension":"A0001",

                  "settle_entity_id":"2088xxxxx;ST_0001",

                  "settle_entity_type":"SecondMerchant、Store",

                  "amount":0.1

                  }]

                  },

                  "logistics_detail":{

                  "logistics_type":"EXPRESS"

                  },

                  "business_params":{

                  "campus_card":"0000306634"

                  }

                  }

                  }
                </div>

              </div>
            </li>
          </ul>


        </div>
      </div>

    </div>


  </div>
  <script type="text/javascript" src="./js/jquery.min.js"></script>
  <script type="text/javascript" src="./js/config.js"></script>
  <script type="text/javascript" src="./lib/layui/layui.js"></script>
  <script type="text/javascript" src="./js/munu.js"></script>
  <script type="text/javascript" src="plugins/tableToExcel/tableToExcel.js"></script>
  <script type="text/javascript" src="./js/xadmin.js"></script>
  <script type="text/javascript">
    var hideMenu = [];
    var wData = {
      Command: "ReadPagingData",
      TableName: "DotBanks"
    };
    var url = './data/interface.json';
    var headArr = [
      { field: 'id', title: '序号', sort: true },
      { field: 'yhz', title: '用户账号' },
      { field: 'yhj', title: '用户角色' },
      { field: 'xjz', title: '需整改建筑' },
      { field: 'jzdz', title: '建筑地址' },
      { field: 'lxr', title: '联系人' },
      { field: 'lxt', title: '联系电话' },
      { field: 'zgs', title: '整改状态' },
      { field: 'pd', title: '计划整改日期' },
      { field: 'sd', title: '实际整改日期' },
      { title: '操作', toolbar: '#barDemo' }
    ];
    layui.use(['table', 'laydate'], function () {
      $ = layui.jquery;
      var laydate = layui.laydate;
      var table = layui.table;
      //执行一个laydate实例
      laydate.render({
        elem: '#start' //指定元素
      });

      //执行一个laydate实例
      laydate.render({
        elem: '#end' //指定元素
      });

      /*************表格***************/

      var tab = renderTable(table, url, '#tableL', wData, headArr, function (res) {
        $('[data-field=Id]').hide();
      });

      /*************表格***************/

      //修改跳转
      table.on('tool(tableL)', function (obj) {
        var that = this;
        var data = obj.data;
        if (obj.event === 'edit') {
          store.save('editData', data);
          window._EditFrameIndex = x_admin_show('修改网点', './sh-bank_edit.html');
        } else if (obj.event === 'del') {

          var delData = {
            Command: 'DeleteDotBank',
            Id: data.Id
          }

          reAjax(delData, function (res) {
            if (res.code == 0) {
              layer.msg(res.msg);
              $(that).closest('tr').remove();
              if (IEVersion()) { //ie
                location.replace(location.href);
              }
              layui.table.reload("tableL");

            }
          })
        }
      });

      /**************新增页面****************/
      $('#addBtn').click(function () {
        window._EditFrameIndex = x_admin_show('新增网点', './sh-bank_add.html');
      });

      /***************搜索*********************/
      $('#serBtn').click(function () {
        var allData = {
          '[ORFuzzy]BankName': $.trim($('#serMsg').val()),
          '[ORFuzzy]BankNo': $.trim($('#serMsg').val())
        }

        tabReload(tab, allData);
      })

    });
  </script>
</body>

</html>